#!/bin/bash
Photos=("Benign" "InSitu" "Invasive" "Normal")
name=("b" "is" "iv" "n")
file="Photos"
source="source.tif"
output="Normalization"
for index in $(seq 0 3)
do
mkdir -p ${file}/${output}/${Photos[index]}
for i in $(seq 1 100)
do
var=`echo $i|awk '{printf("%03d\n",$0)}'`
args_source="${file}/${source}"
args_target="${file}/${Photos[index]}/${name[index]}${var}.tif"
args_output="${file}/${output}/${Photos[index]}/${name[index]}${var}.tif"
python3 batch.py --source ${args_source} --target ${args_target} --output ${args_output}
echo "source: ${args_source} target: ${args_target} output: ${args_output}"
done
done